package user;

import dao.Userdao;
import dao.Jdbcuserdao;
import entity.User;

;

public class RegisterAction {
	// input
	private User user;

	public String execute() {

		Userdao Udao = new Jdbcuserdao();

		try {

			Udao.save(user);

			return "success";
		} catch (Exception e) {
			e.printStackTrace();
			return "error";
		}
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}
